package com.ant.backstage.dao;

import com.ant.backstage.facade.model.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* Created by Mybatis Generator 2021/12/23
*/
public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    Role selectByPrimaryKey(Integer id);

    List<Role> selectAll();

    List<Role> selectRoleByids(@Param("roleIds") List<Integer> roleIds);

    int selectByName(@Param("rolename")String rolename);

    void updateByPrimaryKey(@Param("roleId")Integer roleId, @Param("statusId")Integer statusId);

    List<Integer> selectRolesByTerm(@Param("role") Role role);

}